from PIL import Image, ImageDraw, ImageFont # Create a blank image with white background size = (500, 500) img = Image.new("RGBA", size, (255, 255, 255, 255)) draw = ImageDraw.Draw(img) # Define center and circle properties circle_center = (250, 250) circle_radius = 200 bbox = [circle_center[0]-circle_radius, circle_center[1]-circle_radius, circle_center[0]+circle_radius, circle_center[1]+circle_radius] # Draw the main circle (emblem) with vibrant orange fill and a black outline draw.ellipse(bbox, fill="#FF5733", outline="black", width=5) # Draw a simple creature silhouette (two eyes and a curved smile) eye_radius = 15 left_eye_center = (200, 220) right_eye_center = (300, 220) draw.ellipse([left_eye_center[0]-eye_radius, left_eye_center[1]-eye_radius, left_eye_center[0]+eye_radius, left_eye_center[1]+eye_radius], fill="black") draw.ellipse([right_eye_center[0]-eye_radius, right_eye_center[1]-eye_radius, right_eye_center[0]+eye_radius, right_eye_center[1]+eye_radius], fill="black") # Draw the mouth as a curved arc mouth_bbox = [210, 250, 290, 320] draw.arc(mouth_bbox, start=0, end=180, fill="black", width=5) # Draw the text "LOCOMON" near the bottom of the circle text = "LOCOMON" try: font = ImageFont.truetype("arial.ttf", 40) except: font = ImageFont.load_default() text_width, text_height = draw.textsize(text, font=font) text_position = (250 - text_width / 2, 400 - text_height / 2) draw.text(text_position, text, font=font, fill="white") # Save the image as a PNG file img.save("locomon_logo.png") img.show()